<?php
include("db/connect.php");
$sqlselectproduct="select * from product";
$sqlselectproduct.=" where pro_id like '%".$_POST["txtsearch"]."%' group by pro_id";
$queryselectproduct=mysql_query($sqlselectproduct);
?>
</form>
</td>
</tr>
<style type="text/css">
body {
	background-repeat: repeat;
}
</style>

<form action="" method="post" name="form2" target="_top" id="form2" >
<table width="100%" height="132" border="0" align="center">
    <tr>
    <th width="9%" align="center" nowrap="nowrap">รหัสสินค้า</th>
    <th width="13%" align="center" nowrap="nowrap">ชื่อสินค้า</th>
    <th width="8%" align="center" nowrap="nowrap">จำนวน</th>
    <th width="7%" align="center" nowrap="nowrap">รวมเป็นเงิน</th>
    <th width="5%" align="center" nowrap="nowrap">วันที่สั่งซื้อ</th>
  </tr>
  <?php 
  while($resultproduct=mysql_fetch_array($queryselectproduct)){
  ?>
  <tr>
    <td nowrap="nowrap"><?php echo $resultproduct["pro_id"]?></td>
    <td nowrap="nowrap">&nbsp;</td>
    <td nowrap="nowrap">&nbsp;</td>
    <td nowrap="nowrap">&nbsp;</td>
    <td nowrap="nowrap">&nbsp;</td>
  </tr>
  <?php }?>
</table>
<p align="center">
  <input type="submit" name="button" id="button" value="วางเงินมัดจำ" />
  <input type="submit" name="button2" id="button2" value="ยกเลิก" />
</p>
</form>
